|
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
|
The
syntax for defining a function that is a member of
|
 |
|
|
|
a class outside
of the actual class definition is to put
|
|
|
the return type,
then put the class name, two colons,
|
|
|
and then the
function name. This tells the compiler
|
|
|
that the function
is a member of that class.
|
|
|
EXAMPLE:
|
|
void Aclass::aFunction()
|
|
{
|
|
cout<<"Whatever
code";
|
|
}
|
|
|
|